<?php
include("dao/DatabaseDAO.php");
include("Security.php");

Security::checkAuthenticated();

$databaseId = $_GET["databaseId"];

$databaseDAO = new DatabaseDAO();
$databaseDAO->deleteDatabase($databaseId);

header("location:../add_new_database.php");
?>